<template>
  <div class="home-swiper">
      <swiper @transitionEnd="transitionEnd">
        <swiper-item v-for="(item, id) in banners" :key="id">
          <a :href="item.link">
            <img :src="item.image"/>
          </a>
        </swiper-item>
      </swiper>
  </div>
</template>

<script>
import { Swiper, SwiperItem } from "@/components/common/swiper";
export default {
  props: {
    banners:{
      type: Array,
      defaut() {
        return []
      } 
    }
  },
  components: {
    Swiper,
    SwiperItem
  }
};
</script>

<style scoped>
</style>